<template>
  <div class="app-container">
    <h1>App 根组件</h1>
    <hr />
    <Article>
      <template #title>
        <h2>魔天记</h2>
      </template>
      <template #content="e">
        <p>柳鸣</p>
        <p>牧明珠</p>
        <p>珈蓝</p>
        <p>{{ e }}</p>
      </template>
      <template #footer>
        <h2>作者：忘语</h2>
      </template>
    </Article>
    <div class="box" style="display:none">
      <!-- 渲染 Left 组件和 Right 组件 -->
      <Left>
        <template #MyLeft>
          <p>这是在Left区域声明的p标签</p>
        </template>
      </Left>
      
    </div>
  </div>
</template>

<script>
import Left from '@/components/Left.vue';
import Article from '@/components/Article.vue';

export default {
  components:{
    Left,
    Article
  }
}
</script>

<style lang="less">
.app-container {
  padding: 1px 20px 20px;
  background-color: #efefef;
}
.box {
  display: flex;
}
</style>
